/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.sistemas.sse.entity;

import java.io.Serializable;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.Proxy;

/**
 *
 * @author laptop-w8
 */
@Entity
@Table(name = "MPLANEST")
@Proxy(lazy = false)
public class PlanEstudio implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "CPLANEST")
    private long id_planEstudio;
    @Column(name = "NANIOACDM_PLANEST")
    private long naniosAcademico;
    @Column(name = "NSEMACDM_PLANEST")
    private long nsemestreAcademico;
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "CEAP", referencedColumnName = "CEAP", nullable = false)
    private Eap eap;
    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "planEstudio")
    private Set<PromocionIngreso> promocionesIngreso;

    public long getId_planEstudio() {
        return id_planEstudio;
    }

    public void setId_planEstudio(long id_planEstudio) {
        this.id_planEstudio = id_planEstudio;
    }

    public long getNaniosAcademico() {
        return naniosAcademico;
    }

    public void setNaniosAcademico(long naniosAcademico) {
        this.naniosAcademico = naniosAcademico;
    }

    public long getNsemestreAcademico() {
        return nsemestreAcademico;
    }

    public void setNsemestreAcademico(long nsemestreAcademico) {
        this.nsemestreAcademico = nsemestreAcademico;
    }

    public Eap getEap() {
        return eap;
    }

    public void setEap(Eap eap) {
        this.eap = eap;
    }

    public Set<PromocionIngreso> getPromocionesIngreso() {
        return promocionesIngreso;
    }

    public void setPromocionesIngreso(Set<PromocionIngreso> promocionesIngreso) {
        this.promocionesIngreso = promocionesIngreso;
    }

}
